package com.report.conversion.utils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字体参数类
 *
 * @author: kevin wu
 * @date: 2023年03月11日 9:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FontParams {

    /**
     * 字体名
     */
    private String fontName;
    /**
     * 字体像素高度
     */
    private Short fontHeightInPoints;
    /**
     * 是否加粗
     */
    private Boolean bold;
    /**
     * 是否斜体
     */
    private Boolean italic;
    /**
     * 是否删除线
     */
    private Boolean strikeout;
    /**
     * 下划线类型
     * @see #U_NONE
     * @see #U_SINGLE
     * @see #U_DOUBLE
     * @see #U_SINGLE_ACCOUNTING
     * @see #U_DOUBLE_ACCOUNTING
     */
    private Byte underline;
    /**
     * 字体颜色
     */
    private Short color;

    /**
     * not underlined
     */
    public final static byte U_NONE = 0;

    /**
     * single (normal) underline
     */
    public final static byte U_SINGLE = 1;

    /**
     * double underlined
     */
    public final static byte U_DOUBLE = 2;

    /**
     * accounting style single underline
     */
    public final static byte U_SINGLE_ACCOUNTING = 0x21;

    /**
     * accounting style double underline
     */
    public final static byte U_DOUBLE_ACCOUNTING = 0x22;
}
